﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="quanlydondathang.aspx.cs"
    Inherits="Cucre.quanlydondathang" Title="MUARE.VN - Quản lý đơn đặt hàng" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="page_content">
        <div style="padding-left: 6px;">
            <div class="clear">
            </div>
            <div class="br">
            </div>
            <div class="content_home">
                <%-- vung thể hiện menu --%>
                <div class="ch_1 font">
                    <div class="l">
                        <div class="ll">
                        </div>
                        <div class="lc">
                            <ul id="tab_menu">
                                <li id="tabmnu_1"><a href="QuanLy.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    Tin Khuyến Mãi&nbsp;</span><span class="tab_mnu_r"> </span></a></li>
                                <li id="tabmnu_4"><a href="quanlydondathang.aspx"><span class="tab_mnu_l_curent"></span>
                                    <span class="tab_mnu_c_curent">Đơn Đặt Hàng&nbsp;</span> <span class="tab_mnu_r_curent">
                                    </span></a></li>
                                <li id="tabmnu_2"><span class="tab_mnu_r"></span></li>
                                <li id="tabmnu_3"><a href="QuanLyDoanhNghiep.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">Doanh Nghiệp&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="Li1"><a href="quanlythanhvien.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">THÀNH VIÊN&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="Li2"><a href="QuanLyComment.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    COMMENT&nbsp;</span> <span class="tab_mnu_r"></span></a></li>
                                <li id="Li3"><a href="baocaothongke.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    THỐNG KÊ&nbsp;</span> <span class="tab_mnu_r"></span></a></li>
                            </ul>
                        </div>
                        <div class="lr">
                        </div>
                    </div>
                    <div class="r">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <%-- hết vùng thể hiện menu --%>
                <%-- vùng làm việc --%>
                <div class="ch_2">
                    <h2 align="center">
                        TRANG QUẢN LÝ ĐƠN ĐẶT HÀNG</h2>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                            </asp:ToolkitScriptManager>
                            <div id="working_area">
                                <div>
                                    <div id="Select_City" align="center">
                                        Chọn thành phố : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="DropDownList1" runat="server" align="center" AutoPostBack="True"
                                            OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                            <asp:ListItem>Hà Nội</asp:ListItem>
                                            <asp:ListItem>Hồ Chí Minh</asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        Loại Tin Khuyến Mãi :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="LoaiTinKMDropDownList" runat="server" align="center" AutoPostBack="true"
                                            OnSelectedIndexChanged="LoaiTinKMDropDownList_SelectedIndexChanged">
                                            <asp:ListItem>Đang Khuyến Mãi</asp:ListItem>
                                            <asp:ListItem>Đã Kết Thúc</asp:ListItem>
                                            <asp:ListItem>Chưa Đủ Số Phiếu</asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div style="height: 20px" align="center">
                                </div>
                                <h3 style="margin-top: 20px">
                                    Danh Sách Các Tin Khuyến Mãi :
                                </h3>
                                <asp:Label ID="LabelKhuyenMai" runat="server" ForeColor="Red"></asp:Label>
                                <div id="GridView1" align="center">
                                    <asp:GridView ID="DangKhuyenMai_GridView" runat="server" AutoGenerateColumns="False"
                                        AllowPaging="True" BorderStyle="Groove" PageSize="5" OnPageIndexChanging="DangKhuyenMai_GridView_PageIndexChanging"
                                        OnSelectedIndexChanging="DangKhuyenMai_GridView_SelectedIndexChanging">
                                        <PagerStyle Font-Underline="True" Font-Bold="true" />
                                        <SelectedRowStyle BackColor="#DEDFFE" Font-Bold="true" ForeColor="#333333" Height="25px" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="true" ForeColor="White" Height="25px" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="20px" />
                                        <Columns>
                                            <asp:BoundField DataField="IDPRODUCT" HeaderText="ID" ReadOnly="True" SortExpression="IDPRODUCT">
                                            </asp:BoundField>
                                            <asp:BoundField DataField="PROVIDER_NAME" HeaderText="Provider" ReadOnly="True" SortExpression="PROVIDER_NAME" />
                                            <asp:BoundField DataField="Name_Product" HeaderText="Name" ReadOnly="True" SortExpression="Name_Product" />
                                            <asp:BoundField DataField="TIME_START" HeaderText="Time_Start" ReadOnly="True" SortExpression="TIME_START" />
                                            <asp:BoundField DataField="TIME_STOP" HeaderText="Time_Stop" ReadOnly="True" SortExpression="TIME_STOP" />
                                            <asp:BoundField DataField="PRICE" HeaderText="Price" ReadOnly="True" SortExpression="PRICE" />
                                            <asp:BoundField DataField="CITY" HeaderText="City" ReadOnly="True" SortExpression="CITY" />
                                            <asp:CommandField SelectText="View All Order" ShowSelectButton="true" ItemStyle-Font-Underline="True"
                                                ItemStyle-BorderColor="Blue" ItemStyle-ForeColor="Blue"></asp:CommandField>
                                        </Columns>
                                    </asp:GridView>
                                </div>
                                <div class="br">
                                    <hr />
                                </div>
                                <div>
                                    <h3>
                                        Danh Sách Đơn Đặt Hàng Sản Phẩm :
                                        <asp:Label ID="LabelProductName" runat="server"></asp:Label>
                                    </h3>
                                </div>
                                <div align="center">
                                    <asp:GridView ID="GridView_ListOrder" runat="server" AutoGenerateColumns="False"
                                        AllowPaging="True" BorderStyle="Groove" PageSize="5" OnPageIndexChanging="GridView_ListOrder_PageIndexChanging"
                                        OnRowDeleting="GridView_ListOrder_RowDeleting" OnRowEditing="GridView_ListOrder_RowEditing"
                                        OnSelectedIndexChanging="GridView_ListOrder_SelectedIndexChanging">
                                        <PagerStyle Font-Underline="True" Font-Bold="true" />
                                        <SelectedRowStyle BackColor="#DEDFFE" Font-Bold="true" ForeColor="#333333" Height="25px" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="true" ForeColor="White" Height="25px" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="20px" />
                                        <Columns>
                                            <asp:BoundField DataField="IDORDER" HeaderText="ID" ReadOnly="True" SortExpression="IDORDER"
                                                ControlStyle-Width="30"></asp:BoundField>
                                            <asp:HyperLinkField DataTextField="USERNAME" NavigateUrl="~/quanlythanhvien.aspx"
                                                HeaderText="User name" ItemStyle-Font-Underline="True" ItemStyle-ForeColor="Blue"
                                                ControlStyle-ForeColor="Blue" />
                                            <asp:BoundField DataField="QUATITY" HeaderText="Quatity" ReadOnly="True" SortExpression="QUATITY" />
                                            <asp:BoundField DataField="PAYMENT" HeaderText="Payment" ReadOnly="True" SortExpression="PAYMENT" />
                                            <asp:BoundField DataField="TIMEORDER" HeaderText="Time Order" ReadOnly="True" SortExpression="TIMEORDER" />
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="DropDL_Status" runat="server">
                                                        <asp:ListItem>Đang Giao Hàng</asp:ListItem>
                                                        <asp:ListItem>Đã Giao Hàng</asp:ListItem>
                                                        <asp:ListItem>Đã Hoàn Tiền</asp:ListItem>
                                                    </asp:DropDownList>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:CommandField EditText="Cập Nhật Tình Trạng" ShowEditButton="true" ItemStyle-Font-Underline="True"
                                                ItemStyle-BorderColor="Blue" ItemStyle-ForeColor="Blue" />
                                            <asp:CommandField SelectText="Hoàn Tiền" ShowSelectButton="true" ItemStyle-Font-Underline="True"
                                                ItemStyle-BorderColor="Blue" ItemStyle-ForeColor="Blue" Visible="true" />
                                            <asp:CommandField DeleteText="  Xóa  " ShowDeleteButton="true" ItemStyle-Font-Underline="True"
                                                ItemStyle-BorderColor="Blue" ItemStyle-ForeColor="Blue" ControlStyle-Width="40"
                                                ItemStyle-HorizontalAlign="Center" />
                                        </Columns>
                                    </asp:GridView>
                                </div>
                            </div>
                            <%-- hết vùng làm việc --%>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <%--đường kẻ ngang phía dưới --%>
                <div style="background: url(images/temp2_3.gif) no-repeat left bottom; padding-left: 18px;
                    height: 11px;">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
